
	//overloading for mix
public class HW7_3SP2 {



	   public static void main(String args[])
	   {
	      int[] arr={3,4,5};
	      int[] brr={5,6,7,8,9};
	      int MIN;
	      
	      MIN=min(arr[0],arr[1],arr[2]);
	      System.out.println("Min is: "+MIN);
	      
	      MIN=min(brr[0],brr[1],brr[2],brr[3],brr[4]);
	      System.out.println("Min is: "+MIN);
	      
	   }      
	   
	   private static int min(int s1, int s2, int s3)
	   {
	      int Min=s1;
	      int[] srr={s1,s2,s3};
	      
	      for(int i=0;i<3;i++)
	         if(Min>srr[i])
	            Min=srr[i];
	            
	      return Min;
	   }
	   
	   private static int min(int t1, int t2, int t3, int t4, int t5)
	   {
	      int Min=t1;
	      int[] mrr={t1,t2,t3,t4,t5};
	      
	      for(int i=0;i<5;i++)
	         if(Min>mrr[i])
	            Min=mrr[i];
	      
	      return Min;      
	   }
}
